package 寒假刷题;

public class 旋转字符串 {
    public boolean rotateString(String s, String goal) {
         return s.length()==goal.length() && (s+s).contains(goal);
    }
}
